using System.Web;
using System.Xml;
using System;

/*	-----------------------------------------------------------------------	
	Copyright:	umlungu consulting (pty) ltd
	Author:		Alan Benington	
	Started:	2006-03-08	
	Status:		release	
	Version:	2.0.0
	Buidl:		20070616
	License:	GNU General Public License
	-----------------------------------------------------------------------	*/

/*	---------------------------------------------------------------------------	
	Development Notes:
	==================
	20070616:	New configuration object
	---------------------------------------------------------------------------	*/
	
namespace umlungu.engineX.webX {
	/// <summary>
	/// Description of the x_config class.
	/// <para>Additional information about the class</para>
	/// </summary>
	public class x_config : umlungu.engineX.x_config {
		#region Invisible properties
		#endregion

		#region Constants
		private const string CONFIG_ROOT = "WebX";
		private const string CONFIG_PROF = "Profile";
		#endregion

		#region Visible properties
		/// <summary>The Site profile flag</summary>
		/// <value>Indicates if the profile flag is set</value>
		public string SiteProfile {
			get { return Value(String.Concat(CONFIG_ROOT, "/", CONFIG_PROF, "/@site")); }
		}
		/// <summary>The User profile flag</summary>
		/// <value>Indicates if the profile flag is set</value>
		public string UserProfile {
			get { return Value(String.Concat(CONFIG_ROOT, "/", CONFIG_PROF, "/@user")); }
		}
		/// <summary>The name of the host server</summary>
		/// <value>The root url of the host server eg "localhost" or "www.umlungu.co.za"</value>
		public string Host {
			get { return Value(String.Concat(CONFIG_ROOT, "/@host")); }
		}
		/// <summary>The path to the application on the host web server</summary>
		/// <value>The path eg "/testsite/" or "/"</value>
		public string Path {
			get { return Value(String.Concat(CONFIG_ROOT, "/@path")); }
		}
		#endregion

		#region Constructors/Destructors
		/// <overloads>Constructor</overloads>
		/// <summary>Default constructor</summary>
		public x_config() : base() {
		}
		#endregion

		#region Public methods
		/// <overloads>Description of the overloaded example method</overloads>
		/// <summary>Description of this method overload</summary>
		/// <param name="parameter">Brief description of the parameter</param>
		public void Example(string parameter) {
		}
		/// <summary>Description of this method overload</summary>
		/// <param name="parameter">Brief description of the parameter</param>
		public void Example(int parameter) {
		}
		#endregion
		
		#region Protected methods
		/// <summary>
		/// Description of this method
		/// </summary>
		protected void _Example() {
		}
		#endregion
		
		#region Private methods
		/// <summary>
		/// Description of this method
		/// </summary>
		private void example() {
		}
		#endregion
	}
}
